package echo;

/**
 * Write a description of class EstadoDec here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class EstadoHex implements IEstadoBase
{
	private final int BASE = new Integer(16);

	/**
	 * Constructor for objects of class EstadoDec
	 */
	public EstadoHex()
	{

	}

	public Integer getBase()
	{
		return BASE;
	}

	public String display(Integer numDecimal)
	{
		return "0x" + Integer.toHexString(numDecimal);
	}
	
    public String display(NumeroComplexoComposite numComposite)
	{
		return numComposite.toHexString();
	}	
}